﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZhimeiSoft.CharmManager.DOL;

namespace ZhimeiSoft.CharmManager.Client.Forms
{
    public partial class EmployeeSimpleInfo : UserControl
    {
        public DBEntityCustomInfo CustomInfo
        {
            set
            {
                if(value == null){
                    labCustomName.Text = "会员姓名";
                    labBirthday.Text = "会员生日";
                    labPhone.Text = "联系电话";
                    labLastRegisterDate.Text = "最后一次到店";
                    labLastCallDate.Text = "最后一次回访";
                }else{
                    labCustomName.Text = "会员姓名：" + value.CNAME;
                    labBirthday.Text = "会员生日：" + value.CBIRTHDAY.ToShortDateString();
                    labPhone.Text = "联系电话：" + value.CMOBILEPHONE;
                    labLastRegisterDate.Text = "最后一次到店：" + value.CREGISTERDATE.ToShortDateString() + " " + value.CREGISTERDATE.ToLongTimeString();
                    labLastCallDate.Text = "最后一次回访：" + value.CLASTCALL.ToShortDateString() + " " + value.CLASTCALL.ToLongTimeString(); ;
                }
            }
        }
        public EmployeeSimpleInfo()
        {
            InitializeComponent();
        }
    }
}
